﻿using Abp.AutoMapper;
using GN.Pay.Application.Dto.Input;
using GN.Pay.Core.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Application.GatewayApp.Dto.Input
{
    /// <summary>
    /// 支付通道输入
    /// </summary>
    [AutoMap(typeof(TradePayApplyChannel))]
    public class PayChannelInput : ServiceBaseInput
    {
        /// <summary>
        /// 申请Id
        /// </summary>
        [Required]
        [MaxLength(36)]
        public string ApplyId { get; set; }

        /// <summary>
        /// 通道Id
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string ChannelId { get; set; }

        /// <summary>
        /// 银行卡付款Id
        /// </summary>
        public string BankCradPayId { get; set; }

        /// <summary>
        /// 客户端Ip
        /// </summary>
        [MaxLength(255)]
        public string ClientIP { get; set; }       

        /// <summary>
        /// 通道参数
        /// </summary>
        public Dictionary<string, string> ChannelParams { get; set; }
    }
}
